<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    	<!-- 引入外部静态资源文件 -->
<%@ include file="/appinc.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form id ="form" action="${pageContext.request.contextPath}/loginController/login.do" method="post"><br>
		用户名:<input type="text"  id="username"  name="username"/><br>
		密码:<input type="password" id="password" name="password"/><br>
		<button id="but">登陆</button>
	</form>
	<button id="but1">login</button>
	<button id="but2">login2</button>
	<button id="but3">login3</button>
</body>
<script type="text/javascript">
		$("#but1").click(function(){
			$("#form").attr("action","${pageContext.request.contextPath}/loginController/login.do");
		})
		$("#but2").click(function(){
			$("#form").attr("action","${pageContext.request.contextPath}/loginController/login2.do");
		})
		
		$("#but3").click(function(){
			$("#form").attr("action","${pageContext.request.contextPath}/loginController/login3.do")
		})
</script>
</html>